{% extends 'teacher/left_content.html' %}

{% load staticfiles %}

{% block title %}
    基本信息
{% endblock title %}

{% block css %}
    <link href="{% static 'css/bootstrap.css' %}" type="text/css" media="screen" rel="stylesheet">
    <link rel="stylesheet" type="text/css" id="site-theme" href="{% static 'css/bootstrap-xadmin.css' %}">
    <link href="{% static 'css/font-awesome.css' %}" type="text/css" media="screen" rel="stylesheet">
    <link href="{% static 'css/xadmin.main.css' %}" type="text/css" media="screen" rel="stylesheet">
    <link href="{% static 'css/xadmin.plugins.css' %}" type="text/css" media="screen" rel="stylesheet">
    <link href="{% static 'css/xadmin.responsive.css' %}" type="text/css" media="screen" rel="stylesheet">
    <link href="{% static 'css/xadmin.page.dashboard.css' %}" type="text/css" media="screen" rel="stylesheet">
    <link href="{% static 'css/xadmin.form.css' %}" type="text/css" media="screen" rel="stylesheet"/>
{% endblock css %}

{% block right_content %}
    <div id="content-block" class="col-sm-11 col-md-10">
        <ul class="breadcrumb">
            <li>
                <a href="{% url 'teacher:teacher_index' %}">首页</a>
            </li>
            <li>
                教师
            </li>
            <li>
                汉阳
            </li>
        </ul>
        <div class="navbar content-navbar navbar-default navbar-xs" data-toggle="breakpoint"
             data-class-xs="navbar content-navbar navbar-inverse navbar-xs"
             data-class-sm="navbar content-navbar navbar-default navbar-xs">
            <div class="navbar-header">
                <a class="navbar-brand" data-toggle="collapse" data-target="#top-nav .navbar-collapse">
                    个人信息：{{ teacher_name }}
                </a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                </ul>
                <div class="navbar-btn pull-right hide-xs">
                </div>
            </div>
        </div>

        <form class="exform" enctype="multipart/form-data" >
            <div class="form-container row clearfix">
                <div id="column-0"
                     class="formColumn column form-column full col col-sm-12 form-horizontal" span="12" horizontal>


                    <div class="panel panel-default fieldset unsort no_title" id="box-0">
                        <div class="panel-heading"><i class='icon fa fa-chevron-up chevron'></i>
                            <h3 class="panel-title"></h3></div>
                        <div class="panel-body ">
                            <div id="div_number" class="value form-group row">
                                <div class="control-label">教师序号</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.number }}</p></div>
                            </div>
                            <div id="div_name" class="value form-group row">
                                <div class="control-label">姓名</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.name }}</p></div>
                            </div>
                            <div id="div_gender" class="value form-group row">
                                <div class="control-label">性别</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.gender }}</p></div>
                            </div>
                            <div id="div_password" class="value form-group row">
                                <div class="control-label">密码</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.password }}</p></div>
                            </div>
                            <div id="div_is_class_leader" class="value form-group row">
                                <div class="control-label">是否为班主任</div>
                                <div class="controls"><p class="form-control-static ">{% if teacher.is_class_leader %}
                                    是{% else %}否{% endif %}</p></div>
                            </div>
                            <div id="div_email" class="value form-group row">
                                <div class="control-label">邮箱</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.email }}</p></div>
                            </div>
                            <div id="div_phone" class="value form-group row">
                                <div class="control-label">电话</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.phone }}</p></div>
                            </div>
                            <div id="div_ID" class="value form-group row">
                                <div class="control-label">身份证号</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.ID }}</p></div>
                            </div>
                            <div id="div_subject" class="value form-group row">
                                <div class="control-label">教授科目</div>
                                <div class="controls"><p class="form-control-static ">{{ teacher.subject }}</p></div>
                            </div>
                            <div id="div_remark" class="value form-group row">
                                <div class="control-label">备注</div>
                                <div class="controls"><p class="form-control-static "><span
                                        class="text-muted">{{ teacher.remark }}</span>
                                </p></div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>


            <div class="form-actions well well-sm clearfix fixed">
                <button class="default btn btn-primary hide-xs">
                    <a href="{% url 'teacher:teacher_info' %}" style="color: #ffffff; text-decoration: none">修改个人信息</a>
                </button>

            </div>
        </form>

    </div>
{% endblock right_content %}


{% block js %}
<script type="text/javascript">
    var save_success = {{ save_success }};
    if(save_success == '1'){
        alert('信息修改成功');
    }
</script>
<script type="text/javascript" src="{% static 'js/jquery.ui.core.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.widget.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.mouse.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.sortable.js' %}"></script>
<script type="text/javascript" src="{% static 'js/bootstrap.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.main.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.responsive.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.effect.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.plugin.themes.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.page.dashboard.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.plugin.portal.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.sortable.js' %}"></script>
<script type="text/javascript" src="{% static 'js/bootstrap.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.effect.js' %}"></script>
{% endblock js %}